File comparisons are based on version numbers. If files are not versioned, timestamps are used. Files with the most recent version or timestamp are retained or downloaded. If a local file and BLOB file have the same timestamp, the file size is compared. If these are different, the file from the BLOB is downloaded.